import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import lazyPlugin from './directives'
import {componentPlugin} from './components/main.js'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
//引入自定义样式资源
import '@/styles/common.scss'
// //测试接口函数
// import {getCategoryAPI} from '@/apis/testApi'
// getCategoryAPI().then(res=>console.log(res))
const app = createApp(App)
app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)
app.mount('#app')